import { InjectionKey, Ref } from '@vue/composition-api';
import { Engine } from '../models/engine';
import { EngineProps } from './types';

export const EngineContext: InjectionKey<Ref<Engine>> = Symbol('Engine');

export default function createEngine(props: EngineProps) {
  return new Engine(props);
}
